package com.efast.dmom.mgmt.controller.master;

import java.util.List;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.master.TmBasWh;
import com.efast.dmom.mgmt.service.master.TmBasWhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value="/tmBasWh")
public class TmBasWhController {
	@Autowired
	private TmBasWhService tmBasWhService;
	
	//根据登录人企业代码获取所有仓库信息
	@RequestMapping(value="/getWarehouse")
	public @ResponseBody
	ResultBean getWarehouse() {
		ResultBean result = new ResultBean(true,"'");
		List<TmBasWh> whList = tmBasWhService.getWarehouse();
		result.setObject(whList);
		return result;
	}
}
